#include "Obs.h"
#include <iostream>

using namespace std;

int main(int argc, char **argv)
{
	if(argc < 3)
	{
		cout << "Error ! Too few arguments." << endl;
		cout << "usage : ip, port" << endl;
		return 0;
	}
	
	system("clear");
	
	Obs o(argv[1], atoi(argv[2]));
	
	cout << "Observator started on " << argv[1] << " " << atoi(argv[2]) << endl;
	
	o.start();
	
	return 0;
}
